//导包
import Vue from 'vue'
import VueRouter from 'vue-router'
 
//使用路由组件
Vue.use(VueRouter);
 
// 定义路由表
var routes =[
    {   //启动之后显示的页面
        name:"index",
        path:"/",
        component:()=> import('@/views/mainScreen'),
    },
    {
        name:"main",
        path:"/main",
        component:()=> import('@/views/mainScreen'),
        children:[
        ]
    },
]
 
// 创建router实例
var router =new VueRouter({
    routes
})
 
// 导出router
export default router